3.5 \(\int \frac{\log (c x)}{x} \, dx\)

Optimal. Leaf size=10 \[ \frac{1}{2} \log ^2(c x) \]

[Out]

Log[c*x]^2/2

________________________________________________________________________________________

Rubi [A]  time = 0.0059887, antiderivative size = 10, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {2301} \[ \frac{1}{2} \log ^2(c x) \]

Antiderivative was successfully verified.

[In]

Int[Log[c*x]/x,x]

[Out]

Log[c*x]^2/2

Rule 2301

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))/(x_), x_Symbol] :> Simp[(a + b*Log[c*x^n])^2/(2*b*n), x] /; FreeQ[{a
, b, c, n}, x]

Rubi steps

\begin{align*} \int \frac{\log (c x)}{x} \, dx &=\frac{1}{2} \log ^2(c x)\\ \end{align*}

Mathematica [A]  time = 0.0007479, size = 10, normalized size = 1. \[ \frac{1}{2} \log ^2(c x) \]

Antiderivative was successfully verified.

[In]

Integrate[Log[c*x]/x,x]

[Out]

Log[c*x]^2/2

________________________________________________________________________________________

Maple [A]  time = 0.035, size = 9, normalized size = 0.9 \begin{align*}{\frac{ \left ( \ln \left ( cx \right ) \right ) ^{2}}{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(ln(c*x)/x,x)

[Out]

1/2*ln(c*x)^2

________________________________________________________________________________________

Maxima [A]  time = 0.969151, size = 11, normalized size = 1.1 \begin{align*} \frac{1}{2} \, \log \left (c x\right )^{2} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*x)/x,x, algorithm="maxima")

[Out]

1/2*log(c*x)^2

________________________________________________________________________________________

Fricas [A]  time = 0.800344, size = 22, normalized size = 2.2 \begin{align*} \frac{1}{2} \, \log \left (c x\right )^{2} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*x)/x,x, algorithm="fricas")

[Out]

1/2*log(c*x)^2

________________________________________________________________________________________

Sympy [A]  time = 0.084852, size = 7, normalized size = 0.7 \begin{align*} \frac{\log{\left (c x \right )}^{2}}{2} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(c*x)/x,x)

[Out]

log(c*x)**2/2

________________________________________________________________________________________

Giac [A]  time = 1.23289, size = 11, normalized size = 1.1 \begin{align*} \frac{1}{2} \, \log \left (c x\right )^{2} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*x)/x,x, algorithm="giac")

[Out]

1/2*log(c*x)^2